/*
 * @Author: wuhao930406 1148547900@qq.com
 * @Date: 2023-10-25 16:32:10
 * @LastEditors: wuhao930406 1148547900@qq.com
 * @LastEditTime: 2023-10-26 11:33:18
 * @FilePath: /eggauthmoblie/app/router.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/wechat-validation', controller.wechat.validate);
  router.post('/authtoken', controller.wechat.authtoken);
  router.post('/getticket', controller.wechat.getticket);

};
